package mes.kanban.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 角色与权限的关联关系
 * @author gjy
 *
 * 2018年2月7日下午4:28:53
 */
@Entity
@Table(name="MES_ROLE_PERMISSION")
public class MesRoleAndPermission implements Serializable{

	private static final long serialVersionUID = -7827741345151348481L;
	
	@Id
	@Column(name="id")
	@GeneratedValue(generator="uuid")
	@GenericGenerator(name="uuid",strategy="org.hibernate.id.UUIDGenerator")
	private String id;
	
	
	@Column(name="role_id")
	private String roleId;
	
	@Column(name="permission_id")
	private String permissionId;

	

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getPermissionId() {
		return permissionId;
	}

	public void setPermissionId(String permissionId) {
		this.permissionId = permissionId;
	}
	
	

}
